[php] call_user_func_array problems
Posted
by Knarf
on Stack Overflow
See other posts from Stack Overflow
or by Knarf
Published on 2010-06-07T17:26:35Z
Indexed on
2010/06/07
17:32 UTC
Read the original article
Hit count: 173
php
I have a class with this in
self::$DB = new PDO("mysql:dbname=$dbname;host:=127.0.0.1" , 'root' , '');
and then this
public static function __callStatic($name, $arguments)
{
return call_user_func_array(array('self::$DB', $name), $arguments);
}
How does I make it right/work?
Warning: call_user_func_array() expects parameter 1 to be a valid callback, class 'self::$DB' not found in D:\Mine Dokumenter\My Dropbox\www\Framework 3\database.class.php on line 19
© Stack Overflow or respective owner